package models;


import models.crudsiena.SienaSupport;
import play.data.binding.As;
import play.modules.siena.EnhancedModel;
import play.modules.siena.QueryWrapper;
import siena.Generator;
import siena.Id;
import siena.Query;
import siena.core.Aggregated;
import siena.core.Many;

import java.util.List;

/**
 * Dai dien cho viec trinh bay mot "ung dung" hoac "san pham/dong san pham".
 */
public class Topic extends EnhancedModel {
    @Id(Generator.AUTO_INCREMENT)
    public Long id;

    public String code; //need it to reference, don't have space on it.

    public String name;

    public String title;

    public String desc; //html text

    public byte[] largePhoto; //using in on top, 716x310

    public byte[] relatedPhoto; //using in related slidebar, 100x100

    @Aggregated
    public Many<MoreInfo> moreInfos;
    
    public String language;

    public Topic(Long id) {
        this.id = id;
    }

    public Topic() {
    }

}
